package org.yjqjian.com.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import org.yjqjian.com.R;

/**
 * Created by leon on 2015/7/21.
 */
public class LoginLoad extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login_load);

        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {

                Intent intent = new Intent(LoginLoad.this,Index.class);
                Bundle extras = getIntent().getExtras();
                if(extras != null)
                {
                     intent.putExtra("username",extras.getString("username"));
                }
                startActivity(intent);
                LoginLoad.this.finish();
                // Toast.makeText(getApplicationContext(), "登录成功",

                // Toast.LENGTH_SHORT).show();
            }
        },200);
    }
}
